-- GENERATED SPELL FOR [Wailing Ancestor] --


function spell0_1534(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_1534', 6326, 1)
end

function Sorts_1534(pUnit, Event)
local choix_sorts_1534 = math.random(0, 0)
if choix_sorts_1534 == 0 then
pUnit:RegisterEvent('spell0_1534', 1, 1)
end
end

function mob1534_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1534', math.random(1500, 3000), 1)
end

function mob1534_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1534_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1534_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1534, 1, 'mob1534_Action')
RegisterUnitEvent(1534, 2, 'mob1534_Leave')
RegisterUnitEvent(1534, 3, 'mob1534_Kill')
RegisterUnitEvent(1534, 4, 'mob1534_Die')
